tools: Compile xentop only if curses are available.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 4 Mar 2008 13:29:36 +0000 (13:29 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 4 Mar 2008 13:29:36 +0000 (13:29 +0000)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/xenstat/Makefile

index 1daa628bcbca8158aa914a1038915597dcb2d694..5fc3b52df514fead276b8592ea47449fa76915c0 100644 (file)
@@ -6,8 +6,10 @@ SUBDIRS += libxenstat
 
 # This doesn't cross-compile (cross-compile environments rarely have curses)
 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
+ifeq ($(wildcard /usr/include/curses.h),/usr/include/curses.h)
 SUBDIRS += xentop
 endif
+endif
 
 .PHONY: all install clean